GDK W32: Refuse to release mouse grab while in DnD mode
authorРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 14 Sep 2017 17:43:38 +0000 (17:43 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 25 Nov 2017 15:44:42 +0000 (15:44 +0000)
commit7b6efc29cc1ec852ef63ad13a1646df06cfb0f25
treed6f25de344b29cb95226a948ae04d7987bfb864c
parent0ee453a45bbfedfadc262ecf31c336aebff8766f
GDK W32: Refuse to release mouse grab while in DnD mode

Handle WM_CANCELMODE and do nothing in response to it when DnD is
active. Otherwise pass it to DefWindowProc, which will call ReleaseCapture()
on our behalf.
This prevents us from losing mouse capture when alt-tabbing during DnD
(this includes the feature of Windows Explorer where dragging stuff over
a window button in the taskbar causes that window to receive focus, i.e.
keyboardless alt-tabbing).

https://bugzilla.gnome.org/show_bug.cgi?id=786509
gdk/win32/gdkevents-win32.c